package com.zhou.spring.test_001;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zhouyanxiang
 * @create 2020-07-2020/7/13-18:02
 */
public class SpringTest {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        B b = ctx.getBean("B",B.class);
        System.out.println(b);
        A a = ctx.getBean("A",A.class);
        System.out.println(a);
        C c = ctx.getBean("C",C.class);
        System.out.println(c);

    }
}
